import pandas as pd
list = [[110,120, 105],[95,110, 108],[98,80, 100],[112,106, 97]]
index = ['王蒙','李三','赵胜','刘文']
columns = ['语文','数学','英语']
df = pd.DataFrame(list, index, columns)
df1 = df.rename({'英语': '政治'}, axis='columns')
df1['政治'] = [85, 88, 70, 73]
df2 = df.rename({'刘文':'林靖轩'}, axis='index')
df3 = df.rename({'英语':'体育'}, axis='columns')
print('原始数据: \n', df)
print('修改"英语"列为"政治"列后的数据: \n', df1)
print('\n',df2)
print('\n',df3)